<template>
	<view>
		<view class="item" v-for="(value,index) in iconType" :key="index">
			<icon :type="value" size="66" color="#006eff" />
			<view class="mytext">
				<p>预约成功</p>
			</view>
		</view>
		<view class="cantent">
			<view>
				<text class="one">就诊医院</text>&nbsp;
				<text>{{list[0].Clinic_hospital}}</text>
			</view>
			<view>
				<text class="one">医院地址</text>&nbsp;
				<text>{{list[0].Hospital_address}}</text>
			</view>
			<view>
				<text class="one">就诊科室</text>&nbsp;
				<text>{{list[0].Clinic_department}}</text>
			</view>
			<view>
				<text class="one">预约项目</text>&nbsp;
				<text>核酸检测</text>
			</view>
			<view>
				<text class="one">预约时间</text>&nbsp;
				<text>{{list[0].patients_appointmentTime}}</text>
			</view>
			<view>
				<text class="one">就诊时间</text>&nbsp;
				<text>{{list[0].patients_waitingTime}}</text>
			</view>
			<view>
				<text class="one">费用</text>&nbsp;
				<text class="active">{{list[0].patients_balance_of}}</text>
			</view>
			<view>
				<text class="one">预约时间</text>&nbsp;
				<text>{{list[0].patients_ClinicDate}}</text>
			</view>
		</view>
		<view class="cantent">
			<view>
				<text class="one">就诊人</text>&nbsp;
				<text>{{list[0].patients_name}}</text>
			</view>
			<view>
				<text class="one">身份证号</text>&nbsp;
				<text>{{list[0].card_numer}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				iconType: ['success'],
				textdata: [],
				list: {}
			}
		},
		methods: {
			getall() {
				uni.request({
					url: "http://localhost:3000/selecttable",
					success: (res) => {
						console.log(res);
						this.textdata = res.data.data
					}
				})

			},
		},
		onLoad() {
			this.getall()
			this.list = uni.getStorageSync('binData1');
			console.log(this.list, 5555)
		}
	}
</script>

<style lang="scss">
	.item {
		display: flex;
		flex-direction: column;
		margin-top: 150rpx;
		text-align: center;

		.mytext {
			padding-top: 30rpx;
			line-height: 55rpx;

			.mp {
				color: #bebebf;

			}
		}
	}

	.cantent1 {
		width: 700rpx;
		margin-left: 20rpx;
		margin-top: 20rpx;
		border: 1px solid #f2f2f2;
		padding-left: 10rpx;
		// padding: 20rpx 10rpx;
		box-sizing: border-box;

		.one {
			color: #b3b3b3;
		}

		#zhong {
			display: flex;
			border-bottom: 1px solid #f2f2f2;
			padding: 30rpx;

			.zuo {
				display: flex;
				flex-direction: column;
				margin-right: 150rpx;
				border: none;

				.two {
					color: #bebebe;
					font-size: 24rpx;
					padding-top: 10rpx;

				}
			}
		}
	}

	.cantent1 view:nth-child(1) {
		border: 1px solid #f2f2f2;
		padding: 30rpx;
	}

	.cantent {
		width: 700rpx;
		margin-left: 20rpx;
		margin-top: 20rpx;
		border: 1px solid #f2f2f2;
		padding-left: 10rpx;
		// padding: 20rpx 10rpx;
		font-size: 28rpx;
		box-sizing: border-box;

		view {
			border-bottom: 1px solid #f2f2f2;
			padding: 30rpx;
		}

		.one {
			color: #b3b3b3;
		}
	}

	.active {
		color: red;
	}
</style>
